package week8;
import java.util.*;
public class ptaList {
	public static List<String> convertStringToList(String line) 
	{
		Scanner scanner =new Scanner(line);
		List<String> str =new ArrayList();
		
		while((scanner.hasNext())){
			//scanner.next();
			str.add(scanner.next());
			
		}
		return str;
	}

	public static void remove(List<String> list, String str){
		//List<String> str1 =new ArrayList();
		Iterator<String> it = list.iterator();
		while(it.hasNext()){
		    String x = it.next();
		    if(x.equals(str)){
		        it.remove();
		    }
		}
		
	}
}
